

#ifndef _CMDUPDATA_DATA_TODB_H_
#define _CMDUPDATA_DATA_TODB_H_

#include "commmsg.h"
#include "CTAsyncCmd.h"

class CDBCtrl;
//db数据更新命令
class CCmdUpdateDataToDB: public CTAsyncCmd
{
public:
    CCmdUpdateDataToDB()
    {

    }
    virtual ~CCmdUpdateDataToDB()
    {
    }

    virtual int Do(void* pData);
    virtual int CallBack(int iRet);

    //组建sql
    int GetSqlReq(CReqSQL& stReq);

    int GetPlayerBaseInfoSqlReq(CReqSQL& stReq);
    int GetPlayerDetailInfoSqlReq(CReqSQL& stReq);
    int GetPlayerDetailInfoEx1SqlReq(CReqSQL& stReq);    
    int GetPlayerSnsDetailInfoSqlReq(CReqSQL& stReq);
    int GetUnactPartnerInfoSqlReq(CReqSQL& stReq);
    int GetArenaRankSqlReq(CReqSQL& stReq);
    int GetZoneDataSqlReq(CReqSQL& stReq);
    int GetClanDataSqlReq(CReqSQL& stReq);
    int GetOssPlayerDataSqlReq(CReqSQL& stReq);
    int GetOssZoneDataSqlReq(CReqSQL& stReq);
    int GetInstanceZoneDetailInfoSqlReq(CReqSQL& stReq);
    int GetOssPlayerMoneySql(CReqSQL& stReq);

    CDBCtrl *  m_pstDB;
    CReqUpdateData m_stReq;

};


#endif


